<f:layout name="KML" />

<f:section name="main">
	<name>Life In 35 Pictures</name>
	<description><![CDATA[]]></description>
	<Style id="point">
		<IconStyle>
		  <Icon>
			<href>http://maps.gstatic.com/mapfiles/ms2/micons/blue-dot.png</href>
		  </Icon>
		</IconStyle>
	</Style>
	<f:for each="{images}" as="post">
	<f:for each="{post.files}" as="image" iteration="c">
		
		<Placemark>
			<name>{image.originalResource.title}</name>
			<Snippet>{f:uri.action(action:'show',arguments:{image:post},absolute:'1')}</Snippet>
			<description>{image.originalResource.originalFile.properties.content_creation_date} : {image.originalResource.description}</description>
			<styleUrl>#point</styleUrl>
			<Point>
				<coordinates>{image.originalResource.originalFile.properties.longitude},{image.originalResource.originalFile.properties.latitude},0.000000</coordinates>
			</Point>
		</Placemark>
		
	</f:for>
	</f:for>

</f:section>